﻿using System.Runtime.Serialization;

namespace TimeTravel.Components
{
    /// <summary>
    /// 系统管理日志
    /// </summary>
    [DataContract]
    public class ManageLogInfo : BaseComponent
    {
        /// <summary>
        /// 当前登录IP
        /// </summary>
        [DataMember(Name = "loginip")]
        public string LoginIP { get; set; }
        /// <summary>
        /// 当前管理员登录时间（时间戳格式）
        /// </summary>
        [DataMember(Name = "date")]
        public int Date { get; set; }
        /// <summary>
        /// 日志内容
        /// </summary>
        [DataMember(Name = "body")]
        public string Body { get; set; }
        /// <summary>
        /// 当前管理员
        /// </summary>
        [DataMember(Name = "user")]
        public SysUserInfo User { get; set; }
    }
}